package xyz.xtt.admin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tongtong.middleware.vo.response.AccountBalanceRes;
import xyz.xtt.admin.entity.TblAdminUser;
import xyz.xtt.admin.request.UserRequest;
import xyz.xtt.admin.vo.AdminUserVo;
import xyz.xtt.common.response.ApiResult;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2024-11-21
 */
public interface IAdminUserService extends IService<TblAdminUser> {

    TblAdminUser getByName(String username);

    Page<AdminUserVo> userList(Integer current, Integer page);

    boolean setStatus(Integer id, Integer status);

    ApiResult<AccountBalanceRes> getBalance();

    boolean update(UserRequest user);

}
